<include file="Public:header"/>
<form class="ajax-form" action="" method="post">
<div class="form_data">
	<div class="mod_name">
		<span class="name"><eq name="info.id" value="">添加<else/>修改</eq>文章</span>
	</div>

	<div class="mod_data">
		<div class="name">标题</div>
		<div class="input_data">
			<input type="text" name="title" value="{$info['title']}" datatype="*" style="width: 500px;" placeholder="请填写文章标题">
		</div>
	</div>

	<div class="mod_data">
		<div class="name">作者</div>
		<div class="input_data">
			<input type="text" name="author" value="{$info['author']|default=$_username}" datatype="*" style="width: 500px;" placeholder="请填写本文相关作者">
		</div>
	</div>

	<div class="mod_data">
		<div class="name">外部链接</div>
		<div class="input_data">
			<input type="text" name="url" value="{$info['url']}" datatype="url" ignore="ignore" style="width: 500px;" placeholder="外部链接地址">
		</div>
	</div>

	<div class="mod_data">
		<div class="name">关键字</div>
		<div class="input_data">
			<input type="text" name="related_keyword" value="{$info['related_keyword']}" style="width: 500px;" placeholder="可用于关联相关文章，多个可以以空格隔开">
		</div>
	</div>
	
	<div class="mod_data">
		<div class="name">描述</div>
		<div class="input_data">
			<textarea name="description" style="width:500px;height:120px;">{$info['description']}</textarea>
		</div>
	</div>

	{:W('Plugin/category_select', array('类别', 'category_id', $type, 0, 1))}

	{:W('Plugin/upload_file', array('cover_id', 'img', '封面', '', 0, '', 1))}

	{:W('Plugin/tags_select', array('标签', 'tags_id', $info['id'], 'article_' . $type))}
	
	<div class="mod_data">
		<div class="name">内容</div>
		<div class="input_data">
			<textarea name="content" class="ueditor" id="ueditor_content" style="width: 850px;height:350px;">{$info['content']}</textarea>
		</div>
	</div>

	<div class="mod_submit">
		<input type="hidden" name="id" value="{$info['id']}">
		<input type="hidden" name="module" value="{$type}">
		<button type="submit" class="btn btn-save">保存</button>
		<button type="reset" class="btn btn-reset">重置</button>
		<button class="btn btn-back">返回</button>
	</div>
</div>
</form>
<include file="Public:footer"/>